
#include <stdio.h>
#include "Util/Util.h"
#include "Game/Game.h"

int main(int argc, char **argv)
{
  cGame::Get().Init();

  unsigned long luiLastTime = GetMiliSeconds();
  while (!cGame::Get().HasFinished())
  {
    //Calculate lapsed time
    unsigned long luiActualTime = GetMiliSeconds();
    float lfTimeStep = ((float)(luiActualTime - luiLastTime) / 1000.0f);
    luiLastTime = luiActualTime;

    //Update game state
    cGame::Get().Update(lfTimeStep);

    //Render current state
    cGame::Get().Render();
  }
  cGame::Get().Deinit();
  system("pause");
	return 0;
}

